package com.cwf.business.activity.login;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

import com.cwf.business.R;
import com.cwf.business.activity.AppActivityManager;

/**
 * 注册页
 * Created by sam_chan on 2017/5/8.
 */

public class RegisterActivity extends Activity {

    private ImageView mHeadBack;
    private TextView mHeadTitle;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_register1);
        AppActivityManager.getAppActivityManager().addActivity(this);

        findView();
        bindData();
        setListener();

    }

    private void findView() {
        mHeadBack = (ImageView) findViewById(R.id.head_back);
        mHeadTitle = (TextView) findViewById(R.id.head_title);
    }

    private void bindData() {
        if (mHeadTitle != null) {
            mHeadTitle.setText(getResources().getText(R.string.register_company));
        }

    }

    private void setListener() {
        mHeadBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }
}
